package online.afeibaili.storebackendframework.controller;

import online.afeibaili.storebackendframework.server.UserInfoAdminServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/admin/user")
public class UserInfoAdminController {
    @Autowired
    private UserInfoAdminServer userInfoAdminServer;
    @RequestMapping("/select")
    public ResponseEntity<Map<String, Object>> select() {
        return ResponseEntity.ok(Map.of("code", 200, "result", userInfoAdminServer.selectUser()));
    }
}
